﻿@using FCZLM.Core.Models
@using Microsoft.AspNetCore.Http
@model OrderDetails
@{
    var orders = ViewBag.Orders as List<Orders>;
    
    var product = ViewBag.Product;
}
 <div class="pnt">
   <div class="pntLeft">
    <h2 class="Title">订单详情
    </h2>
   </div><!--pntLeft/-->
   <div class="pntRight">
    <ul class="nav">
     <li class="navCur"><a href="/home/index">商城首页</a></li>
     <li><a href="/Product/index">商品中心</a></li>
     <li><a href="/news/index">新闻中心</a></li>
      <li> @if(@Context.Session.GetString(key:"user")==null){
							 <a href="/login/index">用户中心</a>
						}else{
							
							 <a href="/user/index">用户中心</a>
							
						}   </li>
     <li><a href="/contact/index">联系我们</a></li>
    </ul><!--nav/-->
   </div><!--pntRight/-->
   <div class="clears"></div>
  </div><!--pnt/-->
 
  <div class="cont">
  <div class="contLeft" id="contLeft">
    <h3 class="leftTitle">用户中心</h3>
    <dl class="helpNav vipNav">
     <dt>我的主页</dt>
      <dd>
       <a href="/user/index" class="vipCur">个人中心</a>
       <a href="/order/index">我的订单</a>
       <a href="/shoppingcart/index">我的购物车</a>
      </dd>
     <dt>账户设置</dt>
      <dd>
       <a href="/user/userinfo">个人信息</a>
       <a href="/user/updatepwd">密码修改</a>
       
      </dd>
      
      
    </dl><!--helpNav/-->
   </div><!--contLeft/-->
   <div class="contRight">
        <span style="font-size:16px;"><a href="/order/index" style="color:forestgreen">《返回列表</a></span>
   <h2 class="oredrName">
    订单详情
   </h2>
   
   <table class="orderDeatils" >
    <tr>
     <th>订单编号</th>
     <td>@Model.Id</td>
    </tr>
    <tr>
     <th>商品名称</th>
     <td>@Model.Product.Name</td>
    </tr>
    <tr>
     <th>订单价钱</th>
     <td>￥@Model.Price</td>
    </tr>
    <tr>
     <th>收货人名字</th>
     <td> 
         @Model.Order.User.UserName
        </td>
    </tr>
    <tr>
     <th>收货人电话</th>
     <td> 
         @Model.Order.User.Phone
    </tr>
    <tr>
     <th>收货人地址</th>
     <td> 
         @Model.Order.Address
        </td>
    </tr>
    <tr>
     <th>备注</th>
     <td>@Model.Remark</td>
    </tr>
    <tr>
     <th>支付方式</th>
     <td>@Model.Order.Pay</td>
    </tr>
    <tr>
     <th>支付状态</th>
     <td><span>@if (Model.Order.Status == 0)
                                {
                                    <span>未付款</span>
                                } else if (Model.Order.Status == 1)
                                {
                                     <span>待发货</span>
                                }else if (Model.Order.Status == 2)
                                {
                                      <span>已发货</span>
                                }
                            </span></td>
    </tr>
            <tr><td>@if (Model.Order.Status == 0) {<button>去支付</button> }</td></tr>
        </table> 
   </div><!--contRight/-->
   <div class="clears"></div>
  </div><!--cont/-->
  <script type="text/javascript">
  <script>
     
  </script>